// 如果你不知道自己在做什么，请勿更改本配置内容
import { operationsList } from '../components/StencilTree/operations'
import { formData } from '../const/data'
// 算法组件表单对象
export const uploadFormData = formData

// 判断节点表单对象

export const stencilList = operationsList
// dag-edge边的配置数据
export const commonEdge = {
  attrs: {
    line: {
      stroke: '#2c6fff', // #e52e1a
      strokeWidth: 1,
      targetMarker: {
        name: 'classic',
        size: 8
      }
    }
  },
  connector: {
    name: 'rounded'
  },
  defaultLabel: {
    markup: [
      {
        tagName: 'rect',
        selector: 'body'
      },
      {
        tagName: 'text',
        selector: 'label'
      }
    ],
    attrs: {
      label: {
        fontSize: 14,
        textAnchor: 'middle',
        textVerticalAnchor: 'middle',
        pointerEvents: 'none',
        fill: '#2c6fff'
      }
    },
    position: {
      distance: 0.5
    }
  },
  // labels: "是",
  router: {
    name: 'manhattan'
  },
  zIndex: 0
}
// dag-node节点链接桩群组的配置数据
export const commonPortsGroups = {
  in: {
    position: 'top',
    attrs: {
      circle: {
        r: 4,
        magnet: 'passive',
        fill: '#2c6fff',
        fillOpacity: '0.15',
        stroke: '#2c6fff',
        strokeOpacity: '0.6',
        strokeWidth: 1,
        style: {
          visibility: 'visible'
        }
      }
    }
  },
  out: {
    position: 'bottom',
    attrs: {
      circle: {
        r: 4,
        magnet: true,
        fill: '#2c6fff',
        fillOpacity: '0.15',
        stroke: '#2c6fff',
        strokeOpacity: '0.6',
        strokeWidth: 1,
        style: {
          visibility: 'visible'
        }
      }
    }
  }
}
